<template>
  <div>
    <el-container>
      <el-header>

      </el-header>
      <el-container>
        <!-- 侧边栏 -->
        <el-aside width="220px">
          <!-- 菜单栏 -->
          <el-menu>
            <el-menu-item index="1" @click="$router.push('/merchants/goodsManage')">
              <template slot="title"><i class="el-icon-goods"></i>
                商品管理
              </template>
            </el-menu-item>
            <el-menu-item index="2" @click="$router.push('/merchants/killManage')">
              <template slot="title"><i class="el-icon-s-shop"></i>
                活动管理
              </template>
            </el-menu-item>
            <el-menu-item index="3" @click="$router.push('/merchants/personal')">
              <template slot="title"><i class="el-icon-setting"></i>
                个人中心
              </template>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <!--  -->
        <el-main>
          <!-- 在一级页面中添加router-view标签显示二级路由页面 -->
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
export default{

}
</script>
<style scoped>
  .el-header{
    background-color: #B3C0D1;
    color: #333;
    height: 20vh;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    height: 90vh;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    height: 90vh;
  }
</style>